
package ast;

public class IfNode extends StmtNode
{

    public Node expr;
    public Node ifBody;
    public Node elseBody;


    public IfNode(ExprNode en, BodyNode b1, BodyNode b2)
    {
        this.expr = en;
        this.ifBody = b1;
        this.elseBody = b2;
    }

    public Object accept(Visitor v)
    {
        return v.visit(this);
    }

}
